import {useLocation} from "react-router-dom"
function useQuery (){
    const {search}=useLocation()
    return new URLSearchParams(search)
}
function Cinfo() {
    const my = useQuery()
    console.log(my.get("id"));
    return (
        <div>分类详细信息</div>
    )
}
export default Cinfo;